/* 
 * File:   Editor.h
 * Author: agu
 *
 * Created on 4 de junio de 2014, 18:18
 */

#ifndef EDITOR_H
#define	EDITOR_H
#include <gtkmm-3.0/gtkmm.h>

#include "editor_NuevaCampania.h"
#include "editor_EliminarCampania.h"
#include "editor_ListadoCampanias.h"

class Editor:public Gtk::Window {
public:
    Editor(Glib::RefPtr<Gtk::Application> aplicacion);
    void run();
    ~Editor();
private:
    void loadWidgets();
    void connectWidgets();
    void close();
    void newCampaign();
    void deleteCampaign();
    void editCampaign();
    Glib::RefPtr<Gtk::Application> app;
    Gtk::Window* window;
    Glib::RefPtr<Gtk::Builder> builder;
    Gtk::Button *button_new,*button_del,*button_quit;//,*button_mod;
    NuevaCampania newCamp;
    EliminarCampania delCamp;
    ListadoCampanias listCamp;
};

#endif	/* EDITOR_H */

